package ExerciseThree;

public class BoyGirlTest {

	public static void main(String[] args) {
		//创建对象
		Boy boy = new Boy("石文学",22);
		boy.shout();
		
		Girl girl = new Girl("普元庆",20);
		girl.compare(girl);
		
		//boy.marry(girl);
		int a =girl.compare(girl);
		girl.marry(boy);
		System.out.println(a);

	}

}
